<script type="text/javascript">


    <if condition="$activity['current']['dif_current'] gt 0">
        var intDiff = parseInt({$activity['current']['dif_current']});//倒计时总秒数量
    <elseif condition="$activity['current']['dif_next'] gt 0"/>
        var intDiff = parseInt({$activity['current']['dif_next']});//倒计时总秒数量
    </if>
    function timer(intDiff){
        window.setInterval(function(){
            var day=0,
                    hour=0,
                    minute=0,
                    second=0;//时间默认值
            if(intDiff > 0){
                day = Math.floor(intDiff / (60 * 60 * 24));
                hour = Math.floor(intDiff / (60 * 60)) - (day * 24);
                minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
                second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
            }
            if (hour <= 12) hour = '0' + hour;
            if (minute <= 9) minute = '0' + minute;
            if (second <= 9) second = '0' + second;
            $('#hour_show').html('<span class="">'+hour+'</span>:');
            $('#minute_show').html('<span class="">'+minute+'</span>:');
            $('#second_show').html('<span class="">'+second+'</span>');
            intDiff--;
        }, 1000);
    }

    $(function(){
        timer(intDiff);
    });
</script>
<div class="day-d">
    <a href="{:U('Goods/second')}">
        <div class=" right-bg1"><img src="__IMG__/time.png" /><p class="fl">美日一秒</p>

            <if condition="$activity['current']['dif_current'] gt 0">

                <elseif condition="$activity['current']['dif_next'] gt 0"/>

            </if>

            <div class="time-item1">
                <span id="minute_show"><span class="">00</span>:</span>
                <span id="second_show"><span class="">00</span></span>
            </div><!--倒计时模块-->
        </div>

    </a>
</div>
<ul class="second-good">

    <goods:activity act="1" cate="null" limit="3" name="goods" key="key">
        <a href="{:U('Goods/detail',array('id'=>$goods['id'],'activity'=>'yes'))}">
            <li>
                <img src="http://{:C('DOMAIN')}{:get_item_imgs($goods['multimage'],1,'path')['path']}">
                <div class="day-price"><span class="color-red size">￥{$goods.second_price}</span><br /><span class="color-good"><strike>￥{$goods.price} </strike></span></div>
                <p>{$goods.title}</p>
            </li>
        </a>
    </goods:activity>
</ul>